package com.ad.platform.api.feign;

import com.ad.payload.dto.trade.UpdateCategoryByMerchantIdDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * @author:dxgong
 * @日期 2021/6/24 14:26
 * @注释
 */
@FeignClient(value = "backstage-service")
@RequestMapping("CategoryController")
public interface CategoryBackstageRemote {

    /**
     * 更新商家一级目录二级目录
     * */
    @PostMapping("/back/noAuth/queryCategoryIdByName")
    public void updateCategoryByMerchantId(@Valid @RequestBody UpdateCategoryByMerchantIdDto dto);
}
